Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Update the Markdown::render method to always use the smart Markdown service #1900

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Jul 24, 2024

This simplification means that the method is more predictable, and better follows the principle of least astonishment. I've been so confused so many times about this that using our Markdown helper does not always mean that we get our Markdown features. This change means that any time you call this method, custom Markdown features like our shortcodes and processors will be applied.

A side effect of this is in unit tests, as the method now requires the kernel and config to be set up.

@caendesilva caendesilva force-pushed the simplify-markdown-rendering-helper branch from a53c5d0 to 1860756 Compare July 24, 2024 16:37
@caendesilva caendesilva merged commit 2df0527 into 2.x-dev Jul 24, 2024
7 checks passed
@caendesilva caendesilva deleted the simplify-markdown-rendering-helper branch July 24, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant